home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Complete Linux
/
Complete Linux.iso
/
xwindows
/
demos
/
xfract_1.z
/
xfract_1
/
xfractint-1.06
/
prototyp.h
< prev
next >
Wrap
C/C++ Source or Header
|
1992-09-28
|
32KB
|
927 lines
/* includes needed to define the prototypes */
#include <stdio.h>
#include "mpmath.h"
#include "port.h"
#include "fractint.h"
#include "helpcom.h"
/* calcmand -- assembler file prototypes */
extern int cdecl calcmandasm();
/* calmanfp -- assembler file prototypes */
extern void cdecl calcmandfpasmstart();
extern int cdecl calcmandfpasm();
/* fpu087 -- assembler file prototypes */
extern void cdecl FPUcplxmul(struct complex *, struct complex *, struct complex *);
extern void cdecl FPUcplxdiv(struct complex *, struct complex *, struct complex *);
extern void cdecl FPUsincos(double *, double *, double *);
extern void cdecl FPUsinhcosh(double *, double *, double *);
extern void cdecl FPUcplxlog(struct complex *, struct complex *);
extern void cdecl SinCos086(long , long *, long *);
extern void cdecl SinhCosh086(long , long *, long *);
extern long far cdecl r16Mul(long , long );
extern long far cdecl RegFloat2Fg(long , int );
extern long cdecl Exp086(long);
extern unsigned long far cdecl ExpFudged(long , int );
extern long far cdecl RegDivFloat(long , long );
extern long far cdecl LogFudged(unsigned long , int );
extern long far cdecl LogFloat14(unsigned long );
#ifndef XFRACT
extern long far cdecl RegFg2Float(long, char);
extern long far cdecl RegSftFloat(long, char);
#else
extern long far cdecl RegFg2Float(long , int );
extern long far cdecl RegSftFloat(long , int );
#endif
/* fpu387 -- assembler file prototypes */
extern void cdecl FPUaptan387(double *, double *, double *);
extern void cdecl FPUcplxexp387(struct complex *, struct complex *);
/* fracsuba -- assembler file prototypes */
extern int cdecl longbailout( void );
extern int FManOWarfpFractal( void );
extern int FJuliafpFractal( void );
extern int FBarnsley1FPFractal( void );
extern int FBarnsley2FPFractal( void );
extern int FLambdaFPFractal( void );
/* general -- assembler file prototypes */
extern long cdecl multiply(long, long, int);
extern long cdecl divide(long, long, int);
extern int cdecl getakey(void);
extern void cdecl buzzer(int);
extern void cdecl farmemfree(VOIDFARPTR );
extern int cdecl far_strlen( char far *);
extern int cdecl far_strnicmp(char far *, char far *,int);
extern void cdecl far_strcpy( char far *, char far *);
extern int cdecl far_strcmp( char far *, char far *);
extern void cdecl far_stricmp(char far *, char far *);
extern void cdecl far_strcat( char far *, char far *);
extern void cdecl far_memset( VOIDFARPTR , int , int);
extern void cdecl far_memcpy( VOIDFARPTR , VOIDFARPTR , int);
extern int cdecl far_memcmp( VOIDFARPTR , VOIDFARPTR , int);
extern void cdecl far_memicmp(VOIDFARPTR , VOIDFARPTR , int);
extern void cdecl emmdeallocate(unsigned int);
extern void cdecl emmgetpage(unsigned int, unsigned int);
extern void cdecl emmclearpage(unsigned int, unsigned int);
extern int cdecl keypressed(void);
extern long cdecl readticker( void );
extern void cdecl emmdeallocate(unsigned int);
extern void cdecl xmmdeallocate(unsigned int);
extern void cdecl snd( int );
extern void cdecl nosnd( void );
extern void cdecl initasmvars( void );
extern void cdecl enable( void );
extern void cdecl disable( void );
extern void cdecl delay( int );
extern int cdecl farread(int, VOIDFARPTR, unsigned);
extern int cdecl farwrite(int, VOIDFARPTR, unsigned);
extern long cdecl normalize(char far *);
extern unsigned int cdecl xmmmoveextended(struct XMM_Move *);
extern void cdecl erasesegment(int, int);
extern int cdecl IITCoPro( void );
extern int cdecl F4x4Check( void );
extern int cdecl F4x4Lock( void );
extern void cdecl F4x4Free( void );
extern int cdecl getakeynohelp( void );
extern unsigned int cdecl cmpextra( unsigned int, char *, int );
extern unsigned int cdecl fromextra( unsigned int, char *, int );
extern unsigned int cdecl toextra( unsigned int, char *, int );
extern void cdecl load_mat(double (*)[4]);
extern VOIDFARPTR cdecl farmemalloc(long);
extern unsigned int *cdecl xmmquery(void);
extern BYTE far *cdecl emmquery(void);
extern unsigned int cdecl emmgetfree(void);
extern unsigned int cdecl emmallocate(unsigned int);
extern unsigned int cdecl emmallocate(unsigned int);
extern unsigned int cdecl xmmallocate(unsigned int);
extern void mult_vec_iit(VECTOR);
/* lsysa -- assembler file prototypes */
extern void lsys_doplus(long);
extern void lsys_doplus_pow2(long);
extern void lsys_dominus(long);
extern void lsys_dominus_pow2(long);
extern void lsys_dopipe_pow2(long);
extern void lsys_dobang(long);
#ifndef XFRACT
extern void lsys_doslash_386(long);
extern void lsys_dobslash_386(long);
extern void lsys_doat_386(long);
extern void lsys_dosizegf_386(long);
extern void lsys_dodrawg_386(long);
#endif
/* mpmath_a -- assembler file prototypes */
extern struct MP * MPmul086(struct MP , struct MP );
extern struct MP * MPdiv086(struct MP , struct MP );
extern struct MP * MPadd086(struct MP , struct MP );
extern int MPcmp086(struct MP , struct MP );
extern struct MP * d2MP086(double );
extern double * MP2d086(struct MP );
extern struct MP * fg2MP086(long , int );
extern struct MP * MPmul386(struct MP , struct MP );
extern struct MP * MPdiv386(struct MP , struct MP );
extern struct MP * MPadd386(struct MP , struct MP );
extern int MPcmp386(struct MP , struct MP );
extern struct MP * d2MP386(double );
extern double * MP2d386(struct MP );
extern struct MP * fg2MP386(long , int );
extern double * MP2d(struct MP );
extern int MPcmp(struct MP , struct MP );
extern struct MP * MPmul(struct MP , struct MP );
extern struct MP * MPadd(struct MP , struct MP );
extern struct MP * MPdiv(struct MP , struct MP );
extern struct MP * d2MP(double ); /* Convert double to type MP */
extern struct MP * fg2MP(long , int ); /* Convert fudged to type MP */
/* newton -- assembler file prototypes */
extern int cdecl NewtonFractal2( void );
extern void cdecl invertz2(CMPLX *);
/* tplus_a -- assembler file prototypes */
extern void WriteTPlusBankedPixel(int, int, unsigned long);
extern unsigned long ReadTPlusBankedPixel(int, int);
/* video -- assembler file prototypes */
extern void cdecl adapter_detect(void);
extern void cdecl clearbox(void);
extern void cdecl dispbox(void);
extern void cdecl setvideotext(void);
extern void cdecl setnullvideo(void);
extern void cdecl setfortext(void);
extern void cdecl setforgraphics(void);
extern void cdecl swapnormwrite(void);
extern void cdecl setclear(void);
extern int cdecl SetupShadowVideo(void);
extern int cdecl ShadowVideo(int);
extern int cdecl keycursor(int,int);
extern void cdecl swapnormread(void);
extern void cdecl setvideomode(int, int, int, int);
extern void cdecl movewords(int,BYTE far*,BYTE far*);
extern void cdecl movecursor(int, int);
extern void cdecl get_line(int, int, int, BYTE *);
extern void cdecl put_line(int, int, int, BYTE *);
extern void cdecl setattr(int, int, int, int);
extern void cdecl putstring(int,int,int,CHAR far *);
extern void cdecl spindac(int, int);
extern void cdecl find_special_colors(void);
extern char cdecl get_a_char(void);
extern void cdecl put_a_char(int);
extern void cdecl scrollup(int, int);
extern void cdecl home(void);
extern BYTE far *cdecl findfont(int);
extern int _fastcall getcolor(int, int);
extern void _fastcall putcolor(int, int, int);
extern int out_line(BYTE *, int);
extern void (*swapsetup)(void);
/* 3d -- C file prototypes */
extern void identity(MATRIX);
extern void mat_mul(MATRIX,MATRIX,MATRIX);
extern void scale(double ,double ,double ,MATRIX);
extern void xrot(double ,MATRIX);
extern void yrot(double ,MATRIX);
extern void zrot(double ,MATRIX);
extern void trans(double ,double ,double ,MATRIX);
extern int cross_product(VECTOR,VECTOR,VECTOR);
extern int normalize_vector(VECTOR);
extern int vmult(VECTOR,MATRIX,VECTOR);
extern void mult_vec_c(VECTOR);
extern int perspective(VECTOR);
extern int longvmultpersp(LVECTOR,LMATRIX,LVECTOR,LVECTOR,LVECTOR,int);
extern int longpersp(LVECTOR,LVECTOR,int );
extern int longvmult(LVECTOR,LMATRIX,LV